package parameter

import (
	"github.com/gogf/gf/v2/frame/g"
)

type LoginReq struct {
	g.Meta   `path:"/login" method:"post" `
	Username string `p:"Username" d:"admin" v:"required#用户名必填" dc:"登陆账号"`
	Password string `p:"Password" d:"abc.123" v:"required|password#密码必填" dc:"登陆密码"`
}
type LoginRes struct {
	UserName   string `json:"userName" dc:"成员账号"`
	NickName   string `json:"nickName" dc:"成员昵称"`
	ExpiresIn  int    `json:"expiresIn" dc:"token有效期"`
	LoginToken string `json:"token" dc:"token凭证"`
}
